package com.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.io.IOException;

@Controller
public class DemoController {


    @GetMapping("/")
    @ResponseBody
    public String test() throws IOException {
        return "hello world!";
    }


}
